package com.generator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 表值规则
 */
@TableName("value_rule")
public class ValueRule {
	/** 列名称 */
  @TableField("`column`")
	private String column;
	/** 值规则内容 */
  @TableField("`content`")
	private String content;
	/** 数据库配置编号 */
  @TableField("`databsource_id`")
	private String databsourceId;
	/** 主键 */
   @TableId(type = IdType.AUTO)
	private Integer id;
	/** 表名称 */
  @TableField("`table_name`")
	private String tableName;

	public void setColumn(String column) {
		this.column = column;
	}
	
	public String getColumn() {
		return this.column;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	public String getContent() {
		return this.content;
	}
	public void setDatabsourceId(String databsourceId) {
		this.databsourceId = databsourceId;
	}
	
	public String getDatabsourceId() {
		return this.databsourceId;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getId() {
		return this.id;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	public String getTableName() {
		return this.tableName;
	}

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        ValueRule that = (ValueRule) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "ValueRule{" +
		"column=" + column +
		",content='" + content + "'" + 
		",databsourceId='" + databsourceId + "'" + 
		",id='" + id + "'" + 
		",tableName='" + tableName + "'" + 
                '}';
    }
	
}